package com.sloera;

import com.sloera.api.UserService;
import com.sloera.dto.UserDTO;
import com.sloera.factory.ProxyFactory;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        System.out.println("Hello World!");
        UserService userService = ProxyFactory.getServiceByClass(UserService.class);
        UserDTO userDTO = new UserDTO();
        userDTO.setName("call");
        userDTO.setAge(11);
        System.out.println(userDTO);
        UserDTO re = userService.addUser(userDTO);
        System.out.println(re);
    }
}
